/*
package com.gulimall.product.listener.order;

import com.alibaba.fastjson.JSONObject;
import com.gulimall.product.listener.user.CreateAccountConsumer;
import com.mq.common.rabbitmq.dto.OrderCreatedDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

*/
/**
 * Package: com.gulimall.product.listener.user.order
 * Description：
 * Author: huangjian
 * Date:  2020/6/22 22:47
 * Modified By:
 *//*

@Component
@RabbitListener(queues = "order.stock")
public class ReductStockQueueConsumer {
    */
/**
     * logback
     *//*

    Logger logger = LoggerFactory.getLogger(ReductStockQueueConsumer.class);

    */
/**
     * 处理消息
     * 扣减商品库存
     * @param dto 订单信息
     *//*

    @RabbitHandler
    public void handler(OrderCreatedDTO dto)
    {
        logger.info("订单：{}，创建成功，扣减商品库存信息.", JSONObject.toJSONString(dto));

        //... 扣减商品库存逻辑
    }
}
*/
